rive-cache-inmemory
rive-cache-inmemory
is an implementation of an in-memory cache for the Rive ecosystem. It's intended to be used only within the current process.
It processes incoming events, and adds/modifies/removes resources depending on the event type and data.
There's also a simple API for iterating over resource entities and getting cache statistics (such as the number of stored users).
Example
Update a cache with incoming events from the gateway:
use StreamExt;
use ;
use InMemoryCache;
use Gateway;
use Authentication;
async